//
//  TKIMConverseView.h
//  TKIM
//
//  Created by liupm on 15/10/28.
//  Copyright © 2015年 liupm. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol TKIMConverseViewDelegate;

@interface TKIMConverseView : UIView

@property(nonatomic,weak) id<TKIMConverseViewDelegate>delegate;
@property(nonatomic,strong) UITableView *tableView;
@property(nonatomic,strong) UIImageView *headView;


-(instancetype)initWithFrame:(CGRect)frame withDelegate:(id)delegate contentsController:(UIViewController *)ctl;

/**
 *  @Author lpm, 15-10-30 17:10:08
 *
 *  @brief  刷新头
 *
 *  @param txt
 */
-(void)reloadHead:(NSString *)txt;


/**
 *  @Author lpm, 15-10-30 17:10:31
 *
 *  @brief  刷新数据
 *
 *  @param array
 */
-(void)reloadData:(NSMutableArray *)array;


/**
 *  @brief 消除聊天列表界面的小红点(原因:离线消息推送点了跳转之后,聊天列表界面对应的小红点却没有消掉)
 *  @param dotType
 */
- (void)cleanRedDot:(NSString *)dotType;

@end

@protocol TKIMConverseViewDelegate <NSObject>

/**
 *  @Author lpm, 15-10-29 13:10:46
 *
 *  @brief  跳转到聊天界面
 *
 *  @param user
 */
-(void)toChat:(TKIMUser *)user converse:(TKIMConverseMessage*)cover;


/**
 *  @Author lpm, 15-10-29 13:10:15
 *
 *  @brief  跳转到聊天室列表
 */
-(void)toGroup:(TKIMRoom *)group;

@end
